<template>
	<div class="box">
		<HomeFeaturedGoods :FeaturedGoodsData="list"></HomeFeaturedGoods>
	</div>
</template>

<script>
	import HomeFeaturedGoods from "../../../real-components/HomeFeaturedGoods";
	import { mapGetters } from "vuex";
	import { getPageTree, initDomTree } from "../../../utils/getPageTree";
	import axios from "axios";
	export default {
		props: {
			list: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {
				msg: '这是首页',
				page: "home",
				componentName: "HomeFeaturedGoods",
                /*FeaturedGoodsData:[]*/
			}
		},
		computed: {
			...mapGetters([
				"getDomTree"
			]),
			pageTree() {
				return getPageTree(this, this.page);
			},
		},
		components: {
			HomeFeaturedGoods,
		},
		methods: {
			/*queryFeaturedRec() {
				let queryrelPosition = api.local_host + "/resourceLevel/resourceLevelListH5"
				axios({
					url: queryrelPosition,
					method: "post",
					data: {
						"enterpriseId": api.enterpriseId,
						"relPosition": 'FeaturedRec'
					}
				}).then((res) => {
					this.FeaturedGoodsData = res.data.data[0]
				})
			},*/
		},
		created() {

		},
		mounted() {
			// initDomTree(this.getDomTree[this.page]);
			/*this.queryFeaturedRec()*/
		},
		updated() {
			//页面更新完毕
			// initDomTree(this.getDomTree[this.page]);
		}
	}
</script>

<style>

</style>